package com.weipai.education.model;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
@Data
@Accessors(chain = true)
public class UserAddress {
    private Integer id;

    @NotBlank(message = "省份不能为空")
    private String province;

    @NotBlank(message = "城市不能为空")
    private String city;

    @NotBlank(message = "区/县不能为空")
    private String county;

    @NotBlank(message = "详细地址不能为空")
    private String detailAddress;

    @NotNull(message = "是否为默认地址不能为空")
    private Integer isDefault;

    private Date createTime;

    private Date updateTime;

    private Integer userId;

    @NotBlank(message = "收货人姓名不能为空")
    private String name;

    @NotBlank(message = "收货人手机号不能为空")
    private String mobile;
    
}